﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>

<%@ Import Namespace="VietPublisher.Repositories.Interface" %>
<%

    ICategoryRepository cate = new CategoryRepository();
    //List<VietPublisher.BSL.BK.T_BK_Category> categories = cate..GetCategoryCustomer();
    List<VietPublisher.BSL.BK.T_BK_Category> categories = cate.GetCategoryCustomer();
    int a = 5;
    a++;
    
%>
<div>
    <ul class="menuleft">
        <%foreach (var category in categories)
          {
        %>       
        <li>
         
         <%=Html.ActionLink(category.CategoryName, "Category", "Home", new { categoryID = category.CategoryID }, null)%>
       <%-- <a href="/Home/Category?categoryID=<%=category.CategoryID%>"><%=category.CategoryName %></a> --%>
        
         </li>        
         <%
      } %>
    </ul>
</div>
